]> permondes.de Git - Analog_Engine.git/blame_incremental - AESL/Radioactive Decay.AESL
Harmonic Oscillator basics, some changes to AESL
[Analog_Engine.git] / AESL / Radioactive Decay.AESL
... / ...
CommitLineData
1IDENTIFICATION DIVISION
2PROGRAM-ID Radioactive_Decay
3
4ENVIRONMENT DIVISION
5ENGINE Anabrid-THAT
6REQUIRES COEFFICIENT 2
7REQUIRES INTEGRATOR 1
8REQUIRES INVERTER 1
9
10DATA DIVISION
11OUTPUT OUTPUT.X N
12COEFFICIENT.1 InitialValue
13COEFFICIENT.2 Decay
14
15PROGRAM DIVISION
16+1 -> COEFFICIENT.InitialValue -> N0
17N’, IC:N0 -> INTEGRATOR -> -N
18-N -> COEFFICIENT.Decay -> -lambda*N=N’
19-N -> INVERTER -> N
20
21OPERATION DIVISION
22MODE REPEAT
23OP-TIME 20ms